package vistasSucursal;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.SwingUtilities;

import controlador.ControladorSuc;
import dto.MesaSimpleDTO;
import dto.SectorDTO;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class MenuPrincipalSuc extends javax.swing.JFrame {
	private JMenuBar menuPrincipal;
	private JMenu mesa;
	private JMenuItem abrirMesa;
	private JMenuItem cerrarMesa;
	private JMenuItem generarComanda;
	private JMenu factura;

	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				MenuPrincipalSuc inst = new MenuPrincipalSuc();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
		
	public MenuPrincipalSuc() {
		super();
		initGUI();
	}

	private void initGUI() {
		try {
			{
				getContentPane().setLayout(null);
				{
					menuPrincipal = new JMenuBar();
					setJMenuBar(menuPrincipal);
					
					{
						mesa = new JMenu();
						menuPrincipal.add(mesa);
						mesa.setText("Mesa");
						{
							abrirMesa = new JMenuItem();
							mesa.add(abrirMesa);
							abrirMesa.setText("Abrir Mesa");
							abrirMesa.addActionListener(new ActionListener() {
								public void actionPerformed(ActionEvent evt) {
									AperturaMesaSimple am=new AperturaMesaSimple();
									am.setVisible(true);
								}
							});
						}
						{
							cerrarMesa = new JMenuItem();
							mesa.add(cerrarMesa);
							cerrarMesa.setText("Cerrar Mesa");
							cerrarMesa.addActionListener(new ActionListener() {
								public void actionPerformed(ActionEvent evt) {
									FuncionalidadMesa am=new FuncionalidadMesa();
									am.setVisible(true);
								}
							});
						}
						{
							generarComanda = new JMenuItem();
							mesa.add(generarComanda);
							generarComanda.setText("Generar Comanda");
							generarComanda.addActionListener(new ActionListener() {
								public void actionPerformed(ActionEvent evt) {
									FuncionalidadMesa am=new FuncionalidadMesa();
									am.setVisible(true);
								}
							});
						}
					}
					{
						factura = new JMenu();
						menuPrincipal.add(factura);
						factura.setText("Factura");
					}
				}
				this.setSize(573, 301);
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

}
